package com.gopay.common.domain.cps.gp;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.gopay.common.domain.BaseEntity;

/**
 * P2P平台托管与风险金关系
 * @CpsGpTrustRiskRel.java
 * @author lizheng
 * @2014-4-24 上午11:38:13  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "CPS_P2P_TRUST_RISK_REL")
public class CpsGpTrustRiskRel extends BaseEntity {
    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    /**
     * 流水号
     */
    private int sq;

    /**
     * P2P平台国付宝客户ID
     */
    private String custId;

    /**
     * P2P平台托管账号
     */
    private String trustAcct;
    
    /**
     * P2P平台风险金账号
     */
    private String riskAcct;
    
    /**
     * 创建时间
     */
    private Date createdTs;

    @Id
    @SequenceGenerator(name = "CpsGpTrustRiskRelSequence", sequenceName = "CPS_P2P_TRUST_RISK_REL_SEQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "CpsGpTrustRiskRelSequence")
    @Column(name = "SQ", unique = true, nullable = false)
    public int getSq() {
        return sq;
    }

    public void setSq(int sq) {
        this.sq = sq;
    }
    @Column(name = "CUST_ID", nullable = false, length = 10)
    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }
    @Column(name = "TRUST_ACCT", nullable = false, length = 19)
    public String getTrustAcct() {
        return trustAcct;
    }

    public void setTrustAcct(String trustAcct) {
        this.trustAcct = trustAcct;
    }
    @Column(name = "RISK_ACCT", nullable = false, length = 19)
    public String getRiskAcct() {
        return riskAcct;
    }

    public void setRiskAcct(String riskAcct) {
        this.riskAcct = riskAcct;
    }
    @Column(name = "CREATED_TS")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getCreatedTs() {
        return createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    
}
